home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / HENSA / CONVERTER / ARC-JPEG.ARC / !ArcJPEG_!Help < prev    next >
Encoding:
Text File  |  1993-11-30  |  17.3 KB  |  425 lines

  1.  
  2. ***********************************************************************
  3. *    The copyright notice and credits are at the end of this file     *
  4. ***********************************************************************
  5.  
  6. Contents:
  7. ---------
  8. Aims
  9. Features
  10. Compatibility
  11. About JPEG
  12. Operation
  13. Menus
  14. Options Windows : To JPEG window, From JPEG window
  15. Hints
  16. Known Bugs
  17. Solid Drags in RiscOS3
  18. Author's address
  19. New features since last release
  20. Copyright notice and credits
  21.  
  22.  
  23.  
  24. Aims:
  25. -----
  26.  
  27. The !ArcJPEG application provides a desktop front-end for the fourth release
  28. of the Independent JPEG Group's free JPEG software, the command-line
  29. programs "cjpeg" and "djpeg", which implement JPEG image compression and
  30. decompression.
  31. It will convert JPEG images (filetype &C85) to either PBMPlus (&69E), Targa
  32. (&69D) or GIF (&695) file formats and also the reverse process, creation of
  33. a JPEG file from the above.
  34. Can be used in conjunction with either !Translator or !ChangeFSI to display
  35. JPEG files.
  36.  
  37. Features include:
  38. -----------------
  39.  
  40. * Full control of all features provided by version four of and djpeg and
  41.   most of cjpeg.
  42. * Destination file hotlinks
  43. * Application hotlinks
  44. * Multitasking file conversion (see compatibility note below)
  45. * Quick opening of options and file information windows by clicking on
  46.   iconbar icon with select and adjust (configurable)
  47. * Uses new features in RiscOS3, such as solid icon drags (when selected in
  48.   CMOS ram, see note at end of file), but still remaining compatible with
  49.   RiscOS2 (see compatibility note below)
  50.  
  51. Compatibility:
  52. --------------
  53.  
  54. To work under RiscOS2 it needs the Interface Manager by Simon Huntington and
  55. the CLib and FPEmulator modules, which should be located in the
  56. !System.Modules directory.
  57. For multitasking file conversions to work under RiscOS2 you need at least
  58. version 0.29 of the taskwindow module which is supplied with Desktop C and
  59. Desktop Assembler. If you don't have the taskwindow module then the program
  60. will still work, but without that feature.
  61. When running under RiscOS3 the interface module is not needed and the other
  62. modules, including the taskwindow module are present in ROM.
  63.  
  64. About JPEG:
  65. -----------
  66.  
  67. JPEG (pronounced "jay-peg") is a standardized compression method for
  68. full-colour and gray-scale images. JPEG is designed to handle "real-world"
  69. scenes, for example scanned photographs. Cartoons, line drawings, and other
  70. non-realistic images are not JPEG's strong suit; on this sort of material
  71. you may get poor image quality and/or little compression.
  72. JPEG is lossy, meaning that the output image is not necessarily identical to
  73. the input image. Hence you should not use JPEG if you have to have identical
  74. output bits. However, on typical real-world images, very good compression
  75. levels can be obtained with no visible change, and amazingly high
  76. compression is possible if you can tolerate a low-quality image.
  77.  
  78. Operation:
  79. ----------
  80.  
  81. The !ArcJPEG application starts up when you double-click on its filer icon
  82. or on a JPEG file and installs itself on the icon bar.
  83. JPEG files can be loaded by either double-clicking on its filer icon or
  84. dragging the icon onto the iconbar. PBMPlus, Targa, and Gif files can only
  85. be loaded by dragging onto the icon. This is so that !ArcJPEG can coexist
  86. with programs like !Translator or !ChangeFSI.
  87.  
  88. Menus:
  89. ------
  90.  
  91. Icon bar menu:
  92. --------------
  93.  
  94. -------------
  95. |  ArcJPEG  |
  96. |-----------|
  97. | Info     ⇨| ⇨ Opens "About this program" window
  98. | Open Win ⇨| ⇨ Opens Open Win submenu (see below)
  99. | Hotlink  ⇨| ⇨ Opens Hotlink submenu (see below)
  100. | Options  ⇨| ⇨ Opens Options submenu (see below)
  101. | Quit      |   Quits program
  102. -------------
  103.  
  104. Open Win submenu:
  105. -----------------
  106.  
  107. -------------
  108. | Open Win  |
  109. |-----------|
  110. | File Info |   Opens window showing input/output filenames and process time
  111. | To JPEG   |   Opens options window for creation of jpeg files
  112. | From JPEG |   Opens options window for decompaction of jpeg files
  113. -------------
  114.  
  115. Hotlink submenu:
  116. ----------------
  117.  
  118. -----------------
  119. |  Hotlink      |
  120. |---------------|
  121. |€ Save Box     |  Selects normal save box to appear when saving
  122. |  hotlink 1   ⇨|  \  Selects file hotlinks
  123. |  hotlink 2   ⇨|   | Subwindows also allow hotlink filename to be set by
  124. |  hotlink 3   ⇨|  /  dragging icon to a filer window or by typing the name
  125. |---------------|
  126. |  Application ⇨|  Subwindow allows application hotlinks to be set
  127. |  ChangeFSI    |  Example of application hotlink
  128. -----------------  
  129.  
  130. When savebox is selected a savebox appears in the normal way when a file is
  131. saved.
  132.  
  133. When any of the hotfile options is selected the filename in the hotfile
  134. subwindow is used for the output file. This filename can be changed or set
  135. by either typing it into the writable box in the subwindow (pressing return
  136. or clicking on OK closes the menu but is not needed to make the change
  137. permanent) or dragging the icon onto a filer window. Either of these
  138. operations results in that particular option being selected.
  139.  
  140. The Application subwindow is used to set up application hotlinks. This can
  141. be done in two ways, either by dragging the icon from the application
  142. subwindow to an icon on the icon bar or by selecting the application option
  143. which results in the same window as before popping up when a file is loaded.
  144. When the icon is dragged from the menu window the menu is removed from the
  145. screen so that any obscured icons on the iconbar are revealed. When an
  146. application hotlink is setup, the application name appears on the bottom of
  147. the menu, the hotlink is always selected after creation. Once set then can
  148. be selected by simply clicking on the application name required. Since the
  149. hotlink is invalid when the application has quitted, even if it is reloaded,
  150. entries are removed when the application quits. For this reason these
  151. options are not saved, if an application hotlink was selected when the
  152. options were saved than the application item is selected when they are
  153. loaded up.
  154.  
  155. Options submenu:
  156. ----------------
  157.  
  158. ---------------
  159. |  Options    |
  160. |-------------|
  161. |  Multitask  |    Selects Multitasking file conversion
  162. |€ Fast Mode  |    Selects "Fast Mode" (single tasking file conversion only)
  163. |  Program   ⇨|    Subwindow allows DJPEG or CJPEG to be held in ram
  164. |  Icon Bar  ⇨|    Subwindow allows selection of effect of clicking on 
  165. |-------------|    iconbar icon
  166. |  Save       |    Saves options and file hotlink filenames
  167. |  Load       |    Loads saved options and clears application hotlinks
  168. |  Default    |    Sets default options and clears application hotlinks
  169. ---------------
  170.  
  171. This allows the options to be saved, reloaded or set to the defaults. The
  172. default or load options remove all the application hotlinks from the list.
  173. The last saved options are always loaded up when the program is started.
  174. Selecting Mulititask selects multitasking file conversions and greys out the
  175. Fast Mode option as it is invalid for these operations.
  176. Selecting Fast Mode speeds up single tasking file conversion by turning off
  177. the screen display when processing the file.
  178. The Program subwindow sets whether DJPEG and CJPEG are loaded from disc
  179. for each file conversion or kept in ram. Keeping the program(s) in ram
  180. saves disc swaping if running off a floppy disc at the expence of ram,
  181. about 50K for each program, not realy any use if it is installed on a
  182. hard disc.
  183. The Icon Bar subwindow sets which window gets opened when the select and
  184. adjust buttons of the mouse are clicked on the iconbar icon.
  185.  
  186. Window menu:
  187. ------------
  188.  
  189. This is opened when the menu button is pressed over any of the options
  190. windows and the file information window. It is the same as the iconbar menu
  191. except as shown below
  192.  
  193. -------------
  194. |  ArcJPEG  |
  195. |-----------|
  196. | Reprocess |---Clicking on Reprocess will reprocess the last file that was
  197. | Open Win ⇨|   converted. Useful when seeing the effect of changing the 
  198. | Hotlink  ⇨|   options on the resulting image where the same file is loaded
  199. | Options  ⇨|   every time.
  200. -------------
  201.  
  202. Note, no quit option.
  203.  
  204. Options Windows:
  205. ----------------
  206.  
  207. To JPEG window:
  208. ---------------
  209.  
  210. This controls the cjpeg program which creates JPEG files from the various
  211. input formats.
  212.  
  213. Optimise:
  214. When selected optimization of the entropy encoding parameters is performed.
  215. Without this, default encoding parameters are used. Optimize usually makes
  216. the JPEG file a little smaller, but cjpeg runs somewhat slower and needs
  217. much more memory. Image quality and speed of decompression are unaffected by
  218. Optimize.
  219.  
  220. Quality:
  221. Selecting this means the number in the writable box below is used for the
  222. quality value rather than the default value of 75.
  223. This value adjusts the scale quantization tables which adjust the image
  224. quality. The value is 0 (worst) to 100 (best). This allows you to trade off
  225. compressed file size against quality of the reconstructed image: the higher
  226. the quality setting, the larger the JPEG file, and the closer the output
  227. image will be to the original input. Normally you want to use the lowest
  228. quality setting (smallest file) that decompresses into something visually
  229. indistinguishable from the original image. For this purpose the quality
  230. setting should be between 50 and 95; the default of 75 is often about right.
  231. If you see defects at 75, then go up 5 or 10 counts at a time until you are
  232. happy with the output image. (The optimal setting will vary from one image
  233. to another.)
  234. A quality value of 100 will generate a quantization table of all 1's,
  235. eliminating loss in the quantization step (but there is still information
  236. loss in subsampling, as well as roundoff error).  This setting is mainly of
  237. interest for experimental purposes. Quality values above about 95 are NOT
  238. recommended for normal use; the compressed file size goes up dramatically
  239. for hardly any gain in output image quality.
  240. In the other direction, quality values below 50 will produce very small
  241. files of low image quality. Settings around 5 to 10 might be useful in
  242. preparing an index of a large image library, for example. Try 2 (or so) for
  243. some amusing Cubist effects. (Note: quality values below about 25 generate
  244. 2-byte quantization tables, which are considered optional in the JPEG
  245. standard.
  246.  
  247. Colour-Grey Scale:
  248. These select whether the output image will be in colour or grey scale.
  249. Be sure to select Grey Scale when compressing a grayscale GIF file, because
  250. cjpeg isn't bright enough to notice whether a GIF file uses only shades of
  251. gray. By selecting Grey Scale, you'll get a smaller JPEG file that takes
  252. less time to process.
  253.  
  254. Restart:
  255. This option when selected includes markers in the JPEG file every N rows,
  256. where N is the number in the writeable box below. This allow a JPEG decoder
  257. to resynchronize after a transmission error. Without restart markers, any
  258. damage to a compressed file will usually ruin the image from the point of
  259. the error to the end of the image; with restart markers, the damage is
  260. usually confined to the portion of the image up to the next restart marker.
  261. Of course, the restart markers occupy extra space. We recommend a value of
  262. 1 for images that will be transmitted across unreliable networks such as
  263. Usenet.
  264.  
  265. Smooth:
  266. When selected the input file is filtered  to eliminate fine-scale noise.
  267. This is often useful when converting GIF files to JPEG: a moderate smoothing
  268. factor of 10 to 50 gets rid of dithering patterns in the input file,
  269. resulting in a smaller JPEG file and a better-looking image. Too large a
  270. smoothing factor will visibly blur the image, however.
  271.  
  272. From JPEG window:
  273. -----------------
  274.  
  275. This controls the djpeg program which creates PBMPlus, Targa or Gif files
  276. from JPEG files.
  277.  
  278. PBMPlus-Targa-Gif:
  279. These allows the output file format to be selected.
  280. Changing this when a save box is on screen does have an affect and even
  281. changes the icon in the save box when it is open.
  282. Selecting Gif file output means that colours are by default quantised at
  283. 256, unless the Force Colours option is selected.
  284. Selecting Gif ungreys the options that correspond to the quantisation of
  285. colours, when a 24 bit format is then selected the quantisaton options
  286. are greyed out unless the Force Colours option in the is selected.
  287.  
  288. Colour-Grey Scale:
  289. When Colour is selected then the output file will be in colour (if the
  290. original image was colour), selecting Grey Scale will result in the output
  291. image being in black and white.
  292.  
  293. Force Colours:
  294. When Force Colours is selected this sets the number of colours for
  295. quantisation to the number in the writable icon and ungreys out the colour
  296. quantisation options. The maximum number of colours in a Gif file is 256. If
  297. Gif is selected then the quantisation options are also ungreyed out.
  298.  
  299. One Pass-Two Pass:
  300. When One Pass (quantisation) is selected this rather than the normal Two
  301. Pass quantisation is used. The one-pass method is faster and needs less
  302. memory, but it produces a lower-quality image.
  303.  
  304. FSI Dither:
  305. This option selects whether FSI dithering is used when quantising colours.
  306. This is selected by default when quantisation is selected.
  307.  
  308. Cross Block:
  309. When selected, Cross Block smoothing is used when quantising colours. This
  310. is quite memory-intensive and only seems to improve the image at very low
  311. quality settings (10 to 20 or so). At normal quality settings it may make
  312. things worse.
  313.  
  314. Hints:
  315. ------
  316.  
  317. Colour GIF files are not the ideal input for JPEG; JPEG is really intended
  318. for compressing full-colour (24-bit) images. In particular, don't try to
  319. convert cartoons, line drawings, and other images that have only a few
  320. distinct colours. GIF works great on these, JPEG does not. If you want to
  321. convert a GIF to JPEG, you should experiment with cjpeg's quality and
  322. smooth options to get a satisfactory conversion. A smooth value of 10 or so
  323. is often helpful.
  324. Avoid running an image through a series of JPEG compression/decompression
  325. cycles. Image quality loss will accumulate; after ten or so cycles the image
  326. may be noticeably worse than it was after one cycle. It's best to use a
  327. lossless format while manipulating an image, then convert to JPEG format
  328. when you are ready to file the image away.
  329. The optimize option to cjpeg is worth using when you are making a "final"
  330. version for posting or archiving. It's also a win when you are using low
  331. quality settings to make very small JPEG files; the percentage improvement
  332. is often a lot more than it is on larger files.
  333. When making images to be posted on Usenet, we recommend using cjpeg's option
  334. restart with a value of 1. This option limits the damage done to a
  335. compressed image by netnews transmission errors.
  336. The <Wimp$ScrapDir> directory is used for tempory files if there is not
  337. enough RAM available.
  338. The <Wimp$Scrap> file is used for application hotlinks.
  339. The WimpSlot value given to the process can be changed in the !Run file.
  340. 360K is the default value.
  341.  
  342. Known Bugs:
  343. -----------
  344.  
  345. When dragging the application icon off the window when setting the
  346. applicaton hotlink, the icons on the icon bar are sometimes not redrawn
  347. correctly when the window disapears.
  348.  
  349. Solid Drags in RiscOS3:
  350. -----------------------
  351.  
  352. If you have RiscOS 3 then you can have solid drags when dragging the icon
  353. out of the saveboxes. A solid drag is when the file icon (rather than a
  354. dashed box) is used when dragging. This feature is also used by the
  355. applications present in ROM, such as !Edit, but not the filer.
  356. Cut out the simple basic program below (sourced from usenet), load it into
  357. !Edit and save it as BASIC. When run it will toggle the solid drag option in
  358. the CMOS RAM.
  359.  
  360.    10REM Toggle state of DragASprite bit in CMOS
  361.    20REM Read byte
  362.    30SYS "OS_Byte",161,&1C TO ,,byte%
  363.    40REM EOR byte with mask for bit 1
  364.    50byte% = byte% EOR 1<<1
  365.    60REM Write byte back again
  366.    70SYS "OS_Byte",162,&1C,byte%
  367.    80END
  368.  
  369. Author's address:
  370. -----------------
  371.  
  372. I, Andrew Sellors, can be contacted either at
  373.    57 Boundaries Road
  374.    Feltham
  375.    Middlesex
  376.    TW13 5DR
  377.  
  378. Or via Internet email at
  379.    sellrsaj@ph.ic.ac.uk
  380.  
  381. New features since last release
  382. -------------------------------
  383.  
  384. Added to v1.13
  385.     : Holding of DJPEG and CJPEG in ram (configurable)
  386.  
  387. Added to v1.14
  388.     : Improved Wimp Polling (doesn't eat nulls now)
  389.     : Improved error handling during loading/saving
  390.     : Ability to change WimpSlot given to process in !Run file
  391.  
  392.    
  393. Copyright notice and credits:
  394. -----------------------------
  395.  
  396. !ArcJPEG is FreeWare. This means that you may freely copy and distribute it,
  397. provided that it is complete with all original files, and that you do not
  398. sell it. PD libraries may charge a nominal fee for the cost of duplication,
  399. postage etc.
  400. In no circumstances shall the author be liable for any damage, loss of
  401. profits, time or data or any indirect or consequential loss rising out of
  402. the use of this software or inability to use this software.
  403.  
  404. !ArcJPEG was written with the help of !BlibII ,Copyright 1992 Ian Palmer,
  405. a BASIC program library linker and the associated libraries shown below.
  406.   Event    - © Ian Palmer, 1st March 1993
  407.   Icon     - © Ian Palmer & Tom Hughes, 1st March 1993
  408.   Memory   - © Ian Palmer, 1st March 1993
  409.   Menu     - © Ian Palmer, 1st March 1993
  410.   OS       - © Ian Palmer, 1st March 1993
  411.   Sprite   - © Tom Hughes 1st March 1993
  412.   Template - © Ian Palmer & Tom Hughes, 2nd March 1993
  413.   WIMP     - © Ian Palmer & Tom Hughes, 1st March 1993
  414.   Window   - © Ian Palmer & Tom Hughes, 1st March 1993
  415.   as well as my own libraries © Andrew Sellors 1993
  416.  
  417. The Interface Manager module is © Simon Huntington
  418.  
  419. !ArcJPEG was beta-tested by Dominic Thomas, and who suggested the previous
  420. name needed changing, if you think it is bad now you should have seen it
  421. before.
  422.  
  423. The programs djpeg and cjpeg were ported to the Archimedes by Tom Crossland.
  424. The JPEG sources are written by the people of 'The Independent JPEG Group'.
  425.